package com.darren.archive.service1.controller;


import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EchoController {


    @GetMapping("/echo/{message}")
    public String echo(@PathVariable String message, HttpServletRequest request, HttpServletResponse response) {
        return "Hello Nacos Discovery " + message;
    }


}
